<!DOCTYPE html>
<html lang="en">
<head>
  
<meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title></title>
  <meta name="viewport" content="initial-scale=1, maximum-scale=1">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <meta name="viewport" content="width=device-width, height=device-height, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">

  <link rel="stylesheet" href="http://106.12.207.1:8080/wuliucommon/css/sm.min.css">
  <link rel="stylesheet" href="http://106.12.207.1:8080/wuliucommon/css/sm-extend.min.css">
  <script type="text/javascript" src="http://106.12.207.1:8080/wuliucommon/common/common/common.js"></script>
  <style type="text/css">
    .trackingTitle{
      margin: 1rem 1.5rem 0 1.5rem;
      font-size: 19px;
    }

    .page{
      background-color: white;      
    }

    .list-block{
      margin: 0;
    }
    .last-block-rui{
      margin-bottom: 2rem;
    }

    .bianbai{
      color: white;
    }

    .bar{
      background-color: #c49c22;
    }
    
 
  </style>
</head>
<body>
  
  <div class="page-group">
    <div class="page" style="overflow: auto;">
 
        <header class="bar bar-nav" >
            <a class="icon  pull-left bianbai" style="font-size: 0.75rem;" onclick="goback()">返回</a>
            <a class="icon   pull-right"></a>
            <h1 class="title bianbai">计划跟踪</h1>
        </header>

      <!-- 页面结尾 -->
      <div class="content">
          <div class="content-padded grid-demo">

      <div>
        <h1 class="trackingTitle">计划详情</h1>
        <div class="list-block">
          <ul>
            <li class="item-content">
              <div class="item-media"><i class="icon icon-f7"></i></div>
              <div class="item-inner">
                <div class="item-title">销售合同编号：</div>
                <div class="item-after"><span id="code"></span></div>
              </div>
            </li>
            <li class="item-content">
              <div class="item-media"><i class="icon icon-f7"></i></div>
              <div class="item-inner">
                <div class="item-title">项目名称：</div>
                <div class="item-after"><span id="project_name"></span></div>
              </div>
            </li>
            <li class="item-content">
                <div class="item-media"><i class="icon icon-f7"></i></div>
              <div class="item-inner">
                <div class="item-title">发货库区/堆场：</div>
                <div class="item-after"><span id="reservoir"></span></div>
              </div>
            </li>
            <li class="item-content">
              <div class="item-media"><i class="icon icon-f7"></i></div>
              <div class="item-inner">
                <div class="item-title">货物类型：</div>
                <div class="item-after"><span id="goods_type"></span></div>
              </div>
            </li>
            <li class="item-content">
              <div class="item-media"><i class="icon icon-f7"></i></div>
              <div class="item-inner">
                <div class="item-title">货物名称：</div>
                <div class="item-after"><span id="goods_name"></span></div>
              </div>
            </li>
            <li class="item-content">
              <div class="item-media"><i class="icon icon-f7"></i></div>
              <div class="item-inner">
                <div class="item-title">货物品牌：</div>
                <div class="item-after"><span id="brand"></span></div>
              </div>
            </li>
            <li class="item-content">
              <div class="item-media"><i class="icon icon-f7"></i></div>
              <div class="item-inner">
                <div class="item-title">货物规格：</div>
                <div class="item-after"><span id="kind"></span></div>
              </div>
            </li>
            <li class="item-content">
              <div class="item-media"><i class="icon icon-f7"></i></div>
              <div class="item-inner">
                <div class="item-title">提货方式：</div>
                <div class="item-after"><span id="pickup"></span></div>
              </div>
            </li>
            <li class="item-content">
              <div class="item-media"><i class="icon icon-f7"></i></div>
              <div class="item-inner">
                <div class="item-title">运输方式：</div>
                <div class="item-after"><span id="delivery"></span></div>
              </div>
            </li>
            <li class="item-content">
              <div class="item-media"><i class="icon icon-f7"></i></div>
              <div class="item-inner">
                <div class="item-title">合同数量：</div>
                <div class="item-after"><span id="wlContractExecute_qty"></span></div>
              </div>
            </li>
            <li class="item-content">
              <div class="item-media"><i class="icon icon-f7"></i></div>
              <div class="item-inner">
                <div class="item-title">计划发货时间：</div>
                <div class="item-after"><span id="delivery_date"></span></div>
              </div>
            </li>
            <li class="item-content">
              <div class="item-media"><i class="icon icon-f7"></i></div>
              <div class="item-inner">
                <div class="item-title">计划发货数量：</div>
                <div class="item-after"><span id="plan_qty"></span></div>
              </div>
            </li>
            <li class="item-content">
              <div class="item-media"><i class="icon icon-f7"></i></div>
              <div class="item-inner">
                <div class="item-title">要求到货日期：</div>
                <div class="item-after"><span id="take_date"></span></div>
              </div>
            </li>
            <li class="item-content">
              <div class="item-media"><i class="icon icon-f7"></i></div>
              <div class="item-inner">
                <div class="item-title">卸货地：</div>
                <div class="item-after"><span id="take_place"></span></div>
              </div>
            </li>
            <li class="item-content">
              <div class="item-media"><i class="icon icon-f7"></i></div>
              <div class="item-inner">
                <div class="item-title">收货单位：</div>
                <div class="item-after"><span id="receiver"></span></div>
              </div>
            </li>
            <li class="item-content">
              <div class="item-media"><i class="icon icon-f7"></i></div>
              <div class="item-inner">
                <div class="item-title">收货联系人：</div>
                <div class="item-after"><span id="receiver_person"></span></div>
              </div>
            </li>
            <li class="item-content">
              <div class="item-media"><i class="icon icon-f7"></i></div>
              <div class="item-inner">
                <div class="item-title">联系人手机：</div>
                <div class="item-after"><span id="receiver_mobile"></span></div>
              </div>
            </li>
            <li class="item-content">
              <div class="item-media"><i class="icon icon-f7"></i></div>
              <div class="item-inner">
                <div class="item-title">销售人：</div>
                <div class="item-after"><span id="sell_people"></span></div>
              </div>
            </li>
            <li class="item-content">
              <div class="item-media"><i class="icon icon-f7"></i></div>
              <div class="item-inner">
                <div class="item-title">申报时间：</div>
                <div class="item-after"><span id="form_date"></span></div>
              </div>
            </li>
            <li class="item-content">
              <div class="item-media"><i class="icon icon-f7"></i></div>
              <div class="item-inner">
                <div class="item-title">申报人：</div>
                <div class="item-after"><span id="form_maker"></span></div>
              </div>
            </li>      
            

          </ul>
        </div>
      </div>
      <div>
          <h1 class="trackingTitle">审批进度及意见</h1>
          <div class="list-block">
            <ul>
                <li class="item-content">
                  <div class="item-media"><i class="icon icon-f7"></i></div>
                  <div class="item-inner">
                    <div class="item-title">财务核发数量：</div>
                    <div class="item-after"><span id="tracking_qtyFinance"></span></div>
                  </div>
                </li>
                <li class="item-content">
                  <div class="item-media"><i class="icon icon-f7"></i></div>
                  <div class="item-inner">
                    <div class="item-title">未执行数量：</div>
                    <div class="item-after"><span id="tracking_qty_qtyExecuted"></span></div>
                  </div>
                </li>
            </ul>
          </div>
          <div class="list-block">
          <div id="scheduleAndOpinion">

          </div>
          </div>
      </div>
      <div>
          <h1 class="trackingTitle">计划下达</h1>
          <div class="list-block">
          <div id="jihuaxiada">
              
          </div>
          </div>
      </div>

      <div>
          <h1 class="trackingTitle">派车</h1>
          <div class="list-block">
          <div id="paiche">
              
          </div>
          </div>
      </div>


      <div>
          <h1 class="trackingTitle">出库</h1>
          <div class="list-block">
          <div id="chuku">
              
          </div>
          </div>
      </div>


      <div>
          <h1 class="trackingTitle">签收</h1>
          <div class="list-block">
          <div id="qianshou">
              
          </div>
          </div>
      </div>


      <div>
          <div class="list-block last-block-rui">
          <div id="jihuaxiada">
              <ul>
                  <li class="item-content">
                    <div class="item-media"><i class="icon icon-f7"></i></div>
                    <div class="item-inner">
                      <div class="item-title">计划终止时间：</div>
                      <div class="item-after"><span id="plansToTerminateDate"></span></div>
                    </div>
                  </li>
              </ul>
          </div>
          </div>
      </div>


        </div>
      </div>

    </div>
  </div>

<script type="text/javascript" src="http://106.12.207.1:8080/wuliucommon/js/js/jquery-1.11.1.min.js"></script>
<script type="text/javascript">var $$ =jQuery.noConflict();</script>

<script type='text/javascript' src='http://106.12.207.1:8080/wuliucommon/zepto/zepto/zepto.min.js' charset='utf-8'></script>
<script type='text/javascript' src='http://106.12.207.1:8080/wuliucommon/js/js/sin.js' charset='utf-8'></script>
<script src="http://106.12.207.1:8080/wuliucommon/js/js/swiper/ser.js"></script>
<script type="text/javascript">

    var trackingId = '';

    // 返回
    function goback() {
      native_goto('local/finish');
    }

    // 获取数据
    function getPlanTrack() {
      // 调接口
      var planID = trackingId;
      let param = {}
      let url = '/plantodeclare/wlDeliveryPlanTrack/api/form' +SESSIONID +'?id=' + planID;
      net_request('get',url,param,planTrackSuccessCallBack,planTrackErrorCallBack);
    }
    function planTrackSuccessCallBack(data) {
      // 计划详情
      var planTrackData = data.data.wlDeliveryPlan
      $$('#code').text(planTrackData.code)
      $$('#project_name').text(planTrackData.projectName)
      $$('#reservoir').text(planTrackData.reservoir)
      $$('#goods_type').text(planTrackData.goodsType)
      $$('#goods_name').text(planTrackData.goodsName)
      $$('#brand').text(planTrackData.brand)
      $$('#kind').text(planTrackData.kind)
      $$('#pickup').text(planTrackData.pickup)
      $$('#delivery').text(planTrackData.delivery)
      $$('#wlContractExecute_qty').text(planTrackData.wlContractExecute.qty)
      $$('#delivery_date').text(planTrackData.deliveryDate)
      $$('#plan_qty').text(planTrackData.planQty)
      $$('#take_date').text(planTrackData.takeDate)
      $$('#take_place').text(planTrackData.takePlace)
      $$('#receiver').text(planTrackData.receiver)
      $$('#receiver_person').text(planTrackData.receiverPerson)
      $$('#receiver_mobile').text(planTrackData.receiverMobile)
      $$('#sell_people').text(planTrackData.sellPeople)
      $$('#form_date').text(planTrackData.formDate)
      $$('#form_maker').text(planTrackData.formMaker)
      // 审批进度及意见
      $$('#tracking_qtyFinance').text(planTrackData.wlContractExecute.qtyFinance)
      $$('#tracking_qty_qtyExecuted').text(planTrackData.wlContractExecute.qty - planTrackData.wlContractExecute.qtyExecuted)

      var scheduleAndOpinionData = data.data.approval
      $$("#scheduleAndOpinion").html("");
      if(scheduleAndOpinionData.length > 0){
        for (let index = 0; index < scheduleAndOpinionData.length; index++) {
          const element = scheduleAndOpinionData[index];
          var actName = ''
          if(element.actName == null){
            actName = "结束"
          }else{
            actName = element.actName
          }
          var actBy = ""
          if(element.actBy == null){
            actBy = ""
          }else{
            actBy = element.actBy.name
          }          
          var startDate = ''
          if(isNotNull(element.startDate)){
            startDate = element.startDate
          }
          var endDate = ''
          if(isNotNull(element.endDate)){
            endDate = element.endDate
          }
          var comment = ''
          if(isNotNull(element.comment)){
            comment = element.comment
          }
          var durationTime = ""
          if(element.duration > 0){
            durationTime = parseInt(element.duration/(60*60*24)) + "天 " + parseInt((element.duration/(60*60))%24) + "小时 " + parseInt((element.duration/60)%60) + "分 " + parseInt((element.duration)%60) + "秒"
          }else{
            durationTime = ''
          }
          $$("#scheduleAndOpinion").append(`
                  <ul>
                    <li class="item-content">
                      <div class="item-media"><i class="icon icon-f7"></i></div>
                      <div class="item-inner">
                        <div class="item-title">执行环节：</div>
                        <div class="item-after"><span>` + actName + `</span></div>
                      </div>
                    </li>
                    <li class="item-content">
                      <div class="item-media"><i class="icon icon-f7"></i></div>
                      <div class="item-inner">
                        <div class="item-title">执行人：</div>
                        <div class="item-after"><span>` + actBy + `</span></div>
                      </div>
                    </li>
                    <li class="item-content">
                      <div class="item-media"><i class="icon icon-f7"></i></div>
                      <div class="item-inner">
                        <div class="item-title">开始时间：</div>
                        <div class="item-after"><span>` + startDate + `</span></div>
                      </div>
                    </li>
                    <li class="item-content">
                      <div class="item-media"><i class="icon icon-f7"></i></div>
                      <div class="item-inner">
                        <div class="item-title">结束时间：</div>
                        <div class="item-after"><span>` + endDate + `</span></div>
                      </div>
                    </li>
                    <li class="item-content">
                      <div class="item-media"><i class="icon icon-f7"></i></div>
                      <div class="item-inner">
                        <div class="item-title">提交意见：</div>
                        <div class="item-after"><span>` + comment + `</span></div>
                      </div>
                    </li>
                    <li class="item-content">
                      <div class="item-media"><i class="icon icon-f7"></i></div>
                      <div class="item-inner">
                        <div class="item-title">任务历时：</div>
                        <div class="item-after"><span>` + durationTime + `</span></div>
                      </div>
                    </li>
                  </ul>
          `);
        }
      }

      // 计划下达
      var deliveryOrderData = data.data.deliveryOrderList
      $$("#jihuaxiada").html("");
      if(deliveryOrderData.length > 0){
        for (let index = 0; index < deliveryOrderData.length; index++) {
          const element = deliveryOrderData[index];
          var formMaker = ''
          if(isNotNull(element.formMaker)){
            formMaker = element.formMaker
          }
          var deliveryOrder_qty = ''
          if(isNotNull(element.qty)){
            deliveryOrder_qty = element.qty
          }
          var deliveryOrder_updateDate = ''
          if(isNotNull(element.updateDate)){
            deliveryOrder_updateDate = element.updateDate
          }
          $$("#jihuaxiada").append(`
                <ul>
                  <li class="item-content">
                    <div class="item-media"><i class="icon icon-f7"></i></div>
                    <div class="item-inner">
                      <div class="item-title">下达人：</div>
                      <div class="item-after"><span>` + formMaker + `</span></div>
                    </div>
                  </li>
                  <li class="item-content">
                    <div class="item-media"><i class="icon icon-f7"></i></div>
                    <div class="item-inner">
                      <div class="item-title">下达数量：</div>
                      <div class="item-after"><span>` + deliveryOrder_qty + `</span></div>
                    </div>
                  </li>
                  <li class="item-content">
                    <div class="item-media"><i class="icon icon-f7"></i></div>
                    <div class="item-inner">
                      <div class="item-title">下达时间：</div>
                      <div class="item-after"><span>` + deliveryOrder_updateDate + `</span></div>
                    </div>
                  </li>
                </ul>
          `);
        }
      }

      // 派车
      var assignmentBillData = data.data.assignmentBillList
      $$("#paiche").html("");
      if(assignmentBillData.length > 0){
        for (let index = 0; index < assignmentBillData.length; index++) {
          const element = assignmentBillData[index];
          var assignmentBill_name = ''
          if(isNotNull(element.name)){
            assignmentBill_name = element.name
          }
          var assignmentBill_mobile = ''
          if(isNotNull(element.mobile)){
            assignmentBill_mobile = element.mobile
          }
          var assignmentBill_idCard = ''
          if(isNotNull(element.idCard)){
            assignmentBill_idCard = element.idCard
          }
          var assignmentBill_plateNumber = ''
          if(isNotNull(element.plateNumber)){
            assignmentBill_plateNumber = element.plateNumber
          }
          var assignmentBill_trailerPlateNumber = ''
          if(isNotNull(element.trailerPlateNumber)){
            assignmentBill_trailerPlateNumber = element.trailerPlateNumber
          }
          var assignmentBill_motorcade = ''
          if(isNotNull(element.motorcade)){
            assignmentBill_motorcade = element.motorcade
          }
          var assignmentBill_senderDate = ''
          if(isNotNull(element.senderDate)){
            assignmentBill_senderDate = element.senderDate
          }
          var assignmentBill_remarks = ''
          if(isNotNull(element.remarks)){
            assignmentBill_remarks = element.remarks
          }

          $$("#paiche").append(`
                <ul>
                  <li class="item-content">
                    <div class="item-media"><i class="icon icon-f7"></i></div>
                    <div class="item-inner">
                      <div class="item-title">司机：</div>
                      <div class="item-after"><span>` + assignmentBill_name + `</span></div>
                    </div>
                  </li>
                  <li class="item-content">
                    <div class="item-media"><i class="icon icon-f7"></i></div>
                    <div class="item-inner">
                      <div class="item-title">手机：</div>
                      <div class="item-after"><span>` + assignmentBill_mobile + `</span></div>
                    </div>
                  </li>
                  <li class="item-content">
                    <div class="item-media"><i class="icon icon-f7"></i></div>
                    <div class="item-inner">
                      <div class="item-title">身份证号：</div>
                      <div class="item-after"><span>` + assignmentBill_idCard + `</span></div>
                    </div>
                  </li>
                  <li class="item-content">
                    <div class="item-media"><i class="icon icon-f7"></i></div>
                    <div class="item-inner">
                      <div class="item-title">车主牌号：</div>
                      <div class="item-after"><span>` + assignmentBill_plateNumber + `</span></div>
                    </div>
                  </li> 
                  <li class="item-content">
                    <div class="item-media"><i class="icon icon-f7"></i></div>
                    <div class="item-inner">
                      <div class="item-title">挂车牌号：</div>
                      <div class="item-after"><span>` + assignmentBill_trailerPlateNumber + `</span></div>
                    </div>
                  </li> 
                  <li class="item-content">
                    <div class="item-media"><i class="icon icon-f7"></i></div>
                    <div class="item-inner">
                      <div class="item-title">车队名称：</div>
                      <div class="item-after"><span>` + assignmentBill_motorcade + `</span></div>
                    </div>
                  </li> 
                  <li class="item-content">
                    <div class="item-media"><i class="icon icon-f7"></i></div>
                    <div class="item-inner">
                      <div class="item-title">派车时间：</div>
                      <div class="item-after"><span>` + assignmentBill_senderDate + `</span></div>
                    </div>
                  </li>  
                  <li class="item-content">
                    <div class="item-media"><i class="icon icon-f7"></i></div>
                    <div class="item-inner">
                      <div class="item-title">备注：</div>
                      <div class="item-after"><span>` + assignmentBill_remarks + `</span></div>
                    </div>
                  </li>             
              </ul>
          `);
        }
      }

      // 出库
      var salesOutData = data.data.salesOutList
      $$("#chuku").html("");
      if(salesOutData.length > 0){
        for (let index = 0; index < salesOutData.length; index++) {
          const element = salesOutData[index];
          
          var salesOut_sender = ''
          if(isNotNull(element.sender)){
            salesOut_sender = element.sender
          }
          var salesOut_carNumber = ''
          if(isNotNull(element.carNumber)){
            salesOut_carNumber = element.carNumber
          }
          var salesOut_boxNumber = ''
          if(isNotNull(element.boxNumber)){
            salesOut_boxNumber= element.boxNumber
          }
          var salesOut_shipQty = ''
          if(isNotNull(element.shipQty)){
            salesOut_shipQty = element.shipQty
          }
          var salesOut_grossWeight = ''
          if(isNotNull(element.grossWeight)){
            salesOut_grossWeight = element.grossWeight
          }
          var salesOut_tare = ''
          if(isNotNull(element.tare)){
            salesOut_tare = element.tare
          }
          var salesOut_netWeight = ''
          if(isNotNull(element.netWeight)){
            salesOut_netWeight = element.netWeight
          }
          var salesOut_outDate= ''
          if(isNotNull(element.outDate)){
            salesOut_outDate = element.outDate
          }

          $$("#chuku").append(`
                <ul>
                  <li class="item-content">
                    <div class="item-media"><i class="icon icon-f7"></i></div>
                    <div class="item-inner">
                      <div class="item-title">发货人：</div>
                      <div class="item-after"><span>` + salesOut_sender +`</span></div>
                    </div>
                  </li>
                  <li class="item-content">
                    <div class="item-media"><i class="icon icon-f7"></i></div>
                    <div class="item-inner">
                      <div class="item-title">车号：</div>
                      <div class="item-after"><span>` + salesOut_carNumber +`</span></div>
                    </div>
                  </li>
                  <li class="item-content">
                    <div class="item-media"><i class="icon icon-f7"></i></div>
                    <div class="item-inner">
                      <div class="item-title">箱号：</div>
                      <div class="item-after"><span>` + salesOut_boxNumber +`</span></div>
                    </div>
                  </li>
                  <li class="item-content">
                    <div class="item-media"><i class="icon icon-f7"></i></div>
                    <div class="item-inner">
                      <div class="item-title">发货数量：</div>
                      <div class="item-after"><span>` + salesOut_shipQty +`</span></div>
                    </div>
                  </li> 
                  <li class="item-content">
                    <div class="item-media"><i class="icon icon-f7"></i></div>
                    <div class="item-inner">
                      <div class="item-title">毛重：</div>
                      <div class="item-after"><span>` + salesOut_grossWeight +`</span></div>
                    </div>
                  </li> 
                  <li class="item-content">
                    <div class="item-media"><i class="icon icon-f7"></i></div>
                    <div class="item-inner">
                      <div class="item-title">皮重：</div>
                      <div class="item-after"><span>` + salesOut_tare +`</span></div>
                    </div>
                  </li> 
                  <li class="item-content">
                    <div class="item-media"><i class="icon icon-f7"></i></div>
                    <div class="item-inner">
                      <div class="item-title">净重：</div>
                      <div class="item-after"><span>` + salesOut_netWeight +`</span></div>
                    </div>
                  </li>  
                  <li class="item-content">
                    <div class="item-media"><i class="icon icon-f7"></i></div>
                    <div class="item-inner">
                      <div class="item-title">出库时间：</div>
                      <div class="item-after"><span>` + salesOut_outDate +`</span></div>
                    </div>
                  </li>             
              </ul>
          `);
          
        }
      }

      // 签收
      var salesOutReceivedData = data.data.salesOutReceivedList
      $$("#qianshou").html("");
      if(salesOutReceivedData.length > 0){
        for (let index = 0; index < salesOutReceivedData.length; index++) {
          const element = salesOutReceivedData[index];

          var received_signUpUnloader = ''
          if(isNotNull(element.signUpUnloader)){
            received_signUpUnloader = element.signUpUnloader
          }
          var received_carNumber = ''
          if(isNotNull(element.carNumber)){
            received_carNumber = element.carNumber
          }
          var received_boxNumber = ''
          if(isNotNull(element.boxNumber)){
            received_boxNumber = element.boxNumber
          }
          var received_updateBy_name = ''
          if(isNotNull(element.updateBy.name)){
            received_updateBy_name = element.updateBy.name
          }
          var received_unloadingLand = ''
          if(isNotNull(element.unloadingLand)){
            received_unloadingLand = element.unloadingLand
          }
          var received_signUpUnloadingTime = ''
          if(isNotNull(element.signUpUnloadingTime)){
            received_signUpUnloadingTime = element.signUpUnloadingTime
          }

          $$("#qianshou").append(`
              <ul>
                  <li class="item-content">
                    <div class="item-media"><i class="icon icon-f7"></i></div>
                    <div class="item-inner">
                      <div class="item-title">卸货人：</div>
                      <div class="item-after"><span>` + received_signUpUnloader + `</span></div>
                    </div>
                  </li>
                  <li class="item-content">
                    <div class="item-media"><i class="icon icon-f7"></i></div>
                    <div class="item-inner">
                      <div class="item-title">车号：</div>
                      <div class="item-after"><span>` + received_carNumber + `</span></div>
                    </div>
                  </li>
                  <li class="item-content">
                    <div class="item-media"><i class="icon icon-f7"></i></div>
                    <div class="item-inner">
                      <div class="item-title">箱号：</div>
                      <div class="item-after"><span>` + received_boxNumber + `</span></div>
                    </div>
                  </li>
                  <li class="item-content">
                    <div class="item-media"><i class="icon icon-f7"></i></div>
                    <div class="item-inner">
                      <div class="item-title">卸货量：</div>
                      <div class="item-after"><span>` + received_updateBy_name + `</span></div>
                    </div>
                  </li> 
                  <li class="item-content">
                    <div class="item-media"><i class="icon icon-f7"></i></div>
                    <div class="item-inner">
                      <div class="item-title">卸货地：</div>
                      <div class="item-after"><span>` + received_unloadingLand + `</span></div>
                    </div>
                  </li> 
                  <li class="item-content">
                    <div class="item-media"><i class="icon icon-f7"></i></div>
                    <div class="item-inner">
                      <div class="item-title">卸货时间：</div>
                      <div class="item-after"><span>` + received_signUpUnloadingTime + `</span></div>
                    </div>
                  </li>     
              </ul>
          `);
        }
      }

      // 计划终止时间
      var salesOutReceivedData = data.data.planstop_date
      $$("#plansToTerminateDate").html("");
      if(salesOutReceivedData){
        var time = new Date(salesOutReceivedData);
        var year = time.getFullYear();
        var month = time.getMonth()+1;
        var date = time.getDate();
        var hours = time.getHours();
        var minutes = time.getMinutes();
        var seconds = time.getSeconds();
        var result = year+'-'+add0(month)+'-'+add0(date)+' '+add0(hours)+':'+add0(minutes)+':'+add0(seconds);
        $("#plansToTerminateDate").text(result);
      }

    }
    function planTrackErrorCallBack(data) {
      // alert(JSON.stringify(data))
    }

    function getParams(data){
      var jodata = urlParamParseJson(data);
        if(isNotNull(jodata) && isNotNull(jodata.planId)){//
            trackingId = jodata.planId;
            getPlanTrack()
          
        }

    }

    // 初始化
    $(function(){
      getPlanTrack()
     
      $.init();
    });
  </script>
</body>
</html>